package j2seperf.seri;
import java.io.Serializable;
import java.io.ObjectInputStream;
import java.io.IOException;
import java.util.Date;
import javax.swing.*;

public class TestObjectTrans implements Serializable {

	private int 	value;
	private transient String	name;
	private Date	timeStamp;
	private transient JPanel	panel;
	
	public TestObjectTrans(int value) {
		this.value = value;
      timeStamp = new Date();      
		initTransients();
	}

	public void initTransients() {
      name = new String("Object:" + value);      
		panel = new JPanel();
		panel.add(new JTextField());
		panel.add(new JButton("Help"));
		panel.add(new JLabel("This is a text label"));
	}

	private void readObject(ObjectInputStream in) 
			throws IOException, ClassNotFoundException {
		in.defaultReadObject();
		initTransients();
	}
}
